<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include  "../common.ftl">
</head>
<body>
<form class="layui-form" id="addEmp" style="width:45%;">
    <#-- 用户ID -->
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="empName"
                   placeholder="请输入姓名">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <select name="empSex" lay-verify="required">
                <option value="0" selected>男</option>
                <option value="1">女</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-block">
            <input type="number" class="layui-input" lay-verify="required" name="empAge"
                   oninput="if(value.length>2|| value.length<1 )value=value.slice(0,0)"
                   min="16"
            />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">学历</label>
        <div class="layui-input-block">
            <select name="empEducation" lay-verify="required">
                <option value="">请选择学历</option>
                <option value="0">中专</option>
                <option value="1">大专</option>
                <option value="2">本科</option>
                <option value="3">硕士</option>
                <option value="4">博士</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="empEmail"
                   placeholder="请输入邮箱">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   lay-verify="phone" name="empPhone"/>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">部门</label>
        <div class="layui-input-block">
            <select name="deptId" id="deptId" lay-verify="required">
                <option value="">请选择部门</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">岗位</label>
        <div class="layui-input-block">
            <select name="isLeader" id="leader" lay-verify="required">
                <option value="">请选择岗位</option>
                <option value="0">员工</option>
                <option value="1">组长</option>
                <option value="2">总经理</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">工号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   lay-verify="required" name="account"/>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">
            <select name="roleIds" xm-select="selectId">
            </select>
        </div>
    </div>


    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addEmp">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" type="reset" id="resetBtn">重置</button>
        </div>
    </div>

</form>

<script src="${ctx}/layuimini/js/emp/add.emp.js" charset="UTF-8"></script>
</body>

</html>

